package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.MemberLevel;
import com.nbsaas.boot.marketing.api.domain.simple.MemberLevelSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 会员等级-列表对象转换器
*/

public class MemberLevelSimpleConvert implements Converter<MemberLevelSimple, MemberLevel> {




@Override
public MemberLevelSimple convert(MemberLevel source) {
    MemberLevelSimple result = new MemberLevelSimple();

                result.setBenefits(source.getBenefits());
                result.setDiscountRate(source.getDiscountRate());
                result.setCode(source.getCode());
                result.setLevel(source.getLevel());
                result.setMinPoints(source.getMinPoints());
                result.setIcon(source.getIcon());
                result.setDescription(source.getDescription());
                result.setAddDate(source.getAddDate());
                result.setMaxPoints(source.getMaxPoints());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}